
╔═════════╦════════════════════════════════════════════════════════════
║ GT-HELP ║ GTLOGON.BAT and GTLOGOFF.BAT - optional batch files
╚═════════╩════════════════════════════════════════════════════════════


    Log-on and log-off batch files are completely optional.  If either
    exists, then it will be executed at the appropriate time.


┌───────────────────┐
│ Log-on Batch file │
└───────────────────┘

    GTLOGON.BAT, if it exists, will be executed when each caller logs on,
    after displaying the bulletins and before first reaching the main menu.


    Usually, a log-on batch file must :

        a)  redirect input and output to the comms port (see doorgen.hlp)

        b)  execute a DOS command or program.

        c)  redirect output back to the sysop's screen.

    If the program was specifically written to run in a door, it may 
    perform its own redirection.  Read its docs for information.

    Note:   Logon programs can be unpopular since they delay access to the
            main menu.  If you put anything there that doesn't run at
            lightning speed, make sure there's some way that the caller can
            terminate it prematurely.


┌────────────────────┐
│ Log-off Batch file │
└────────────────────┘

    GTLOGOFF.BAT, if it exists, will be executed when the caller selects
    the <G>oodbye option, after GT has displayed the contents of the GTBYE
    file.

    Logoff programs usually invoke administrative programs which are
    performed after the caller has gone.  Output redirection is therefore
    not usually required in a logoff batch file.

    Typically, a log-off batch file will :

    a)  Cause the modem to disconnect from the line, eg :

            DROPDTR         (assuming you have such a program and the modem
                             is configured to disconnect when DTR is
                             dropped)

    b)  Prevent the modem from auto-answering, if it was previously set up
        to do so.

            eg ATS0=0 issued by AT.COM or DOSMODEM.

    c)  Optionally, busy the line.

            eg ATH1 issued by AT.COM or DOSMODEM.

    d)  One or more DOS programs or commands.

    GT does not, by itself, drop carrier until the logoff.bat file has
    executed to completion.


┌─────────────────────────────┐
│ New User logon/logoff doors │
└─────────────────────────────┘

    Two additional batch files are possible.  If they exist, they are
    executed only for first time callers :

        GTNLOGON.BAT    executes *before* GTLOGON.BAT

        GTNLOGOFF.BAT   executes *before* GTLOGOFF.BAT

    These are normally used only for specialised purposes, eg in
    conjunction with companion programs.

